<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
int count = 0;
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <base href="<%=basePath%>">
    <title></title>
    <link href="foreground/style/css.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body>
    <div class="main">
	<div class="subject_top"></div>
	<div class="query">
		<form action="queryProjects.action"  method="post">
			项目名称：
			  <input type="text" name="pname" id="" width="100" height="15px" />&nbsp;&nbsp;
			时间：
 			  <input type="text" name="begtime" id="" width="100" height="15px" />
			至
              <input type="text" name="endtime" id="" width="100" height="15px"/>
              &nbsp;&nbsp;<input type="submit" value="查询" class="button" />
		</form>
	</div>
	<div class="table_list">
	 <table class="table_main" width="100%" cellspacing="0" cellpadding="0">
	  <tr class="table_tr">
	  	<td width="5%">序号</td>
	    <td width="15%">项目编号</td>
	    <td width="35%">项目名称</td>
	    <td width="15%">项目来源</td>
	    <td width="10%">科研经费</td>
	    <td width="10%">负责人</td>
	    <td width="10%">时间</td>
	  </tr>
	  <s:iterator value="projectBean.list">
	  <tr>
	  <%
	  	count++;
	  %>
	    <td align="center"><%=count %></td>
	    <td align="center"><s:property value="pcode" /></td>
	    <td><s:property value="pname" /></td>
	    <td align="center"><s:property value="psources" /></td>
	    <td align="center"><s:property value="pfunds" /></td>
	    <td><s:property value="pprincipal" /></td>
	    <td><s:date format="yyyy-MM" name="ptime"  /></td>
	  </tr>
	  </s:iterator>
	</table>
	    </div>
	    <div class="list_bottom" style="display: <s:property value="projectBean.hid"/>">第<s:property value="projectBean.currentPage"/>页|共<s:property value="projectBean.totalGroup"/>页&nbsp;&nbsp;&nbsp;
	    [<a href="queryProjects.action?page=<s:property value='projectBean.currentPage'/>&param=forward&flag=Y">上一页</a>|
	    <a href="queryProjects.action?page=<s:property value='projectBean.currentPage'/>&param=backward&flag=Y">下一页</a>]</div>
	</div>
  </body>
</html>
